package com.liholin.springboot.sample.bean;

import lombok.Data;

@Data
public class EmployeeResponse {
    private String employeeName;
    private String gender;
    private String department;
    private String employeeCode;

    public void setData(EmployeeResponse response, int index,int maxColIx, String data) {
        switch (index % maxColIx) {
            case 0:
                response.setEmployeeName(data);
            case 1:
                response.setGender(data);
            case 2:
                response.setDepartment(data);
            case 3:
                response.setEmployeeCode(data);
        }
    }
}
